The Validator verifies card numbers based
on the Mod 10 Algorithm.
Kudos to Aries Solis (asolis@hoovers.com) who
originally found the needed data URL for all
the cards and to Melvyn Myers
(homebuilder@peg.apc.org) for posting the
original I hacked into a totally different
animal. As for the unknown original poster of
the parent version ... eternal gratitude.
The cc_form.html document is essentially
the HTML form front-end for this script.
Please feel free to copy/paste/edit to suit
your needs. The cc_ver.pl script is platform
neutral and should run without modification
on Unix and NT servers alike under either
Perl 4.036 or 5.001m. Executable file
location modifications may be needed, just
like any other script.
Please feel free to copy out the needed
sections and impliment the validation part
into your own scripts, all I ask is that
proper credit be retained and noted in your
script.
This has been fully debugged and has
validated 50 different cards properly. It has
ruthlessly weeded out fabricated Card
Numbers. Basically.. it works just fine. If
you have any problems, then it resides in how
your system is configured and how you've
modified the script. (read that as "Not
My Problem")